package com.bignerdranch.android.sensorapplication.utils;

import android.util.Log;

import java.io.FileWriter;
import java.io.IOException;

public class FileRecord {

    public static void record(String fileName, String content) {
        try {
            FileWriter fileWriter = new FileWriter(fileName, true);
            fileWriter.write(content);
            fileWriter.close();
        } catch (IOException e) {
            e.printStackTrace();
            Log.e("IOException", e.toString());
        }
    }
}
